<script type="text/javascript" src="<?php echo base_url(); ?>public/scripts/country.js"></script>
<div id="content">
    <div id="bodysite">
    	<div id="searchome">
        	<?php $this->load->view("public/msearch"); ?>
        </div>
        <div id="youhere">
        	You are here : <a href="<?php echo base_url() ?>" class="gray" title="Home">Home</a>&nbsp;&raquo;&nbsp;<a href="<?php echo base_url() ?>photo-albums.html" class="gray" title="photos album">photos album</a>
        </div>
    	<div id="bodyl">
            <div id="albums">
            	<?php if (isset($listall)) {
					foreach ($listall as $key => $item) {
						?>
						<h2 class="albumh3"><?php echo $key; ?></h2>
						<div class="listalbum">
						<?php
						foreach($item as $val){
							$forder = $val['forder'];
							echo "<div class='album_thum'>";
								echo "<a href='".base_url()."photo-albums/$val[rewrite]-$val[id].html'><img src='".base_url()."uploads/album/thumb/".$val['avatar']."' alt='$val[title]' title='$val[title]' /></a>";
								echo "<h3>".$val['title']."</h3>";
							echo "</div>";
						}
						?>
						<div class="cls"></div>
						</div>
						<?php
					}
				}
				?>
            </div>
        </div>
        <div id="bodyr">
        	<div id="livechat"><?php $this->load->view("public/livezilla"); ?></div>
            <?php $this->load->view("public/guide"); ?>
            <div id="testnimo"><?php $this->load->view("public/test"); ?></div>
            <div id="news"><?php $this->load->view("public/news"); ?></div>
        </div>
        <div class="cls"></div>
    </div>
</div>